package com.corejava.training.inheritence;

public class CarDemo {

	public static void main(String[] args) {
		
		Car ca = new Honda();
		//Car ca2 = new Car(2012, "Jasur");
		
		ca.setYear(1999);
		System.out.println(ca.getYear() + " manufactured car."); 
		
		ca.setOwner("Javlan");
		System.out.println("owner of the car: " + ca.getOwner()); 

		ca.setSpeed(100);
		ca.maxSpeed();
		
		
	}
	
}
